/**
 * 
 */
package fr.cie.blog.controller;

import java.util.List;

import fr.cie.blog.beans.Article;
import fr.cie.blog.beans.Comment;
import fr.cie.blog.beans.User;
import fr.cie.blog.domainservice.IServiceComment;

/**
 * @author Jee3
 * 
 */
public class CommentAction extends GenericAction {

	/**
	 * serialVersionUID.
	 */
	private static final long serialVersionUID = 8411039757824681280L;

	/**
	 * comment.
	 */
	private Comment comment;
	/**
	 * commentList.
	 */
	private List<Comment> commentList;

	/**
	 * serviceComment.
	 */
	private IServiceComment serviceComment;

	/**
	 * Constructor.
	 * 
	 * @param pServiceComment
	 *            serviceComment
	 */
	public CommentAction(final IServiceComment pServiceComment) {
		super();
		serviceComment = pServiceComment;
	}

	/**
	 * @param pArticle
	 *            the Article which contains the Comment to add
	 * @return SUCCESS
	 */
	public final String addComment(final Article pArticle) {
		return "";
	}

	/**
	 * @param pComment
	 *            the comment to delete
	 * @return SUCCESS
	 */
	public final String deleteComment(final Comment pComment) {
		return "";
	}

	/**
	 * @return the comment
	 */
	public final Comment getComment() {
		return comment;
	}

	/**
	 * @return the commentList
	 */
	public final List<Comment> getCommentList() {
		return commentList;
	}

	/**
	 * @return the serviceComment
	 */
	public final IServiceComment getServiceComment() {
		return serviceComment;
	}

	/**
	 * @return SUCCESS
	 */
	public final String listComments() {
		return "";
	}

	/**
	 * @param pArticle
	 *            the owner article of comments
	 * @return SUCCESS
	 */
	public final String listComments(final Article pArticle) {
		return "";
	}

	/**
	 * @param pUser
	 *            the author of comments
	 * @return SUCCESS
	 */
	public final String listComments(final User pUser) {
		return "";
	}

	/**
	 * @return SUCCESS
	 */
	public final String listPersonalComments() {
		return "";
	}

	/**
	 * @param pComment
	 *            the Comment to modify
	 * @return SUCCESS
	 */
	public final String modifiyPersonalComment(final Comment pComment) {
		return "";
	}

	/**
	 * @param pComment
	 *            the Comment to modify
	 * @return SUCCESS
	 */
	public final String modifyComment(final Comment pComment) {
		return "";
	}

	/**
	 * @param pComment
	 *            the comment to set
	 */
	public final void setComment(final Comment pComment) {
		this.comment = pComment;
	}

	/**
	 * @param pCommentList
	 *            the commentList to set
	 */
	public final void setCommentList(final List<Comment> pCommentList) {
		this.commentList = pCommentList;
	}

	/**
	 * @param pServiceComment
	 *            the serviceComment to set
	 */
	public final void setServiceComment(final IServiceComment pServiceComment) {
		this.serviceComment = pServiceComment;
	}

	/**
	 * @param pComment
	 *            the comment to validate
	 * @return SUCCESS
	 */
	public final String validateComment(final Comment pComment) {
		return "";
	}
}
